package com.spring.proxy.gp;

import com.spring.proxy.jdk.PersonImpl;
import com.spring.proxy.jdk.Personable;

public class PClient {

	public static void main(String[] args) {
		Personable proxy=(Personable) new PersonProxy(new PersonImpl()).getInstance();
		proxy.eat();
		System.out.println(proxy.sayHello("xiao ming"));
		System.out.println(proxy.add(1, 2));
	}

}
